package com.hy.erp.inventory.pojo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Index;
/*import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
*/
import com.hy.erp.inventory.dao.interfaces.IContactTypeDao;
import com.hy.erp.inventory.pojo.interfaces.IContact;
import com.hy.erp.inventory.pojo.interfaces.IContactType;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;

/**
 * <ul>
 * <li>开发作者：汤莉</li>
 * <li>设计日期：2010-10-5；时间：下午21:20:51</li>
 * <li>字段类型：long；字段名称：serialVersionUID</li>
 * <li>设计目的：联系方式分类</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
@Entity
@Table(name="t_contactType")
/*
@Name("contactType")
@Scope(ScopeType.SESSION)
@ DaoA ( IContactTypeDao.class )*/
public class ContactType extends MyBaseModel{ //implements IPositonType
//public class ContactType extends AbstractPersistentEntity implements IContactType{

	private static final long serialVersionUID = -8154658268267237010L;
	
	
	
	
	/**
	 * 构造函数
	 */
	public ContactType(){}

	
	//#########################################################################
	
	
	
	@Column(name="contactTypeName",unique=false,nullable=false,insertable=true,updatable=true)
	@Index(name="contactTypeNameIndex")
	public String getContactTypeName() {
		return this.get(IContactType.NAME) ;
	}

	public void setContactTypeName(String contactTypeName) {
		super.set (IContactType.NAME , contactTypeName );
	}
	
	@Column(name="description",length=100)
	@Index(name="descriptionIndex")
	public String getDescription ( )
	{
		return this.get(IContactType.DESCRIPTION) ;
	}

	public void setDescription (
									String description )
	{
		super.set ( IContactType.DESCRIPTION , description ) ;
	}
}
